const foo = true;
const baz = 1;
const qux = 2;

const quxx = () => console.log;
const foobar = () => console.log;
const bar = () => console.log;

console.log(
    foo
        ? baz === qux 
            ? quxx() 
            : foobar() 
        : bar()
);
